import axios from '@/libs/api.request'

// 获取公告列表
export const getReviewFeedList = (data) => {
  return axios.request({
    url: '/ipbes/ipbes/reviewFeed/getReviewFeedList.htm',
    data,
    method: 'post'
  })
}

// 获取文献资料
export const getDocumentationList = (data) => {
  return axios.request({
    url: '/ipbes/ipbes/documentation/getDocumentationList.htm',
    data,
    method: 'post'
  })
}

// 获取详情
export const getReviewFeedDetail = (data) => {
  return axios.request({
    url: '/ipbes/ipbes/reviewFeed/getReviewFeedDetail.htm',
    data,
    method: 'post'
  })
}

// 收藏
export const insert = (data) => {
  return axios.request({
    url: '/ipbes/ipbes/collection/insert.htm',
    data,
    method: 'post'
  })
}

// 取消收藏
export const remove = (data) => {
  return axios.request({
    url: '/ipbes/ipbes/collection/remove.htm',
    data,
    method: 'post'
  })
}

// 设置已读 huo 参加活动
export const ChangeToRead = (data) => {
  return axios.request({
    url: '/ipbes/ipbes/reviewFeed/ChangeToRead.htm',
    data,
    method: 'post'
  })
}

// 取消参加
export const cancleToJoin = (data) => {
  return axios.request({
    url: '/ipbes/ipbes/reviewFeed/cancleToJoin.htm',
    data,
    method: 'post'
  })
}

// 上传总结报告
export const uploadReviewFeedBack = (data) => {
  return axios.request({
    url: '/ipbes/ipbes/reviewFeedBack/uploadReviewFeedBack.htm',
    data,
    method: 'post'
  })
}

// 获取文献详情
export const getDocumentationDetail = (data) => {
  return axios.request({
    url: '/ipbes/ipbes/documentation/getDocumentationDetail.htm',
    data,
    method: 'post'
  })
}

// 取消参加
export const collectionList = (data) => {
  return axios.request({
    url: '/ipbes/ipbes/collection/collectionList.htm',
    data,
    method: 'post'
  })
}
